﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="ProductType_FlowManage.aspx.cs" Inherits="ProductManage_RFProductManage_Manage_ProductType_FlowManage"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div>
                <div>
                    <br />
                    <p style="text-align:center;">
                        输入产品类型S代码快速查找：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="Button1" runat="server" Text="查  询" onclick="Button1_Click" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="Button2" runat="server" Text="返回所有产品类型列表" 
                            onclick="Button2_Click" />
                    </p>
                    产品类型常规工序管控列表：
                </div>
                <div style="text-align: center;">
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
                        CellSpacing="1" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging"
                        OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDataBound="GridView1_RowDataBound"
                        OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" PageSize="20"
                        Width="100%" DataKeyNames="ProductTypeID,ProductTypeName,AgingStep,DebugStep,PowerStep,PIMStep,ATEStep,HFATEStep,PackageStep">
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <Columns>
                            <asp:TemplateField HeaderText="产品类型">
                                <EditItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("ProductTypeID") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("ProductTypeID") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="产品名称">
                                <EditItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("ProductTypeName") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("ProductTypeName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="物料装配工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFAssembleStep" runat="server" Value='<%# Eval("AssembleStep") %>' />
                                    <asp:DropDownList ID="DDLAssembleStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" Checked=' <%# Convert.ToBoolean(Eval("AssembleStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="焊点检验工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFJointingStep" runat="server" Value='<%# Eval("JointingStep") %>' />
                                    <asp:DropDownList ID="DDLJointingStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>                                    
                                    <asp:CheckBox ID="CheckBox2" runat="server" Checked=' <%# Convert.ToBoolean(Eval("JointingStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="时效工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFAgingStep" runat="server" Value='<%# Eval("AgingStep") %>' />
                                    <asp:DropDownList ID="DDLAgingStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox3" runat="server" Checked=' <%# Convert.ToBoolean(Eval("AgingStep")) %>'
                                        Enabled="false" />
                                    <%--<asp:Label ID="Label3" runat="server" Text='<%# Bind("AgingStep") %>'></asp:Label>--%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="调试ATE工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFDebugATEStep" runat="server" Value='<%# Eval("DebugATEStep") %>' />
                                    <asp:DropDownList ID="DDLDebugATEStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox5" runat="server" Checked=' <%# Convert.ToBoolean(Eval("DebugATEStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="调试工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFDebugStep" runat="server" Value='<%# Eval("DebugStep") %>' />
                                    <asp:DropDownList ID="DDLDebugStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox4" runat="server" Checked=' <%# Convert.ToBoolean(Eval("DebugStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="QC定点检验工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFQCFixedStep" runat="server" Value='<%# Eval("QCFixedStep") %>' />
                                    <asp:DropDownList ID="DDLQCFixedStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>                         
                                    <asp:CheckBox ID="CheckBox6" runat="server" Checked=' <%# Convert.ToBoolean(Eval("QCFixedStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="交调工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFPIMStep" runat="server" Value='<%# Eval("PIMStep") %>' />
                                    <asp:DropDownList ID="DDLPIMStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox8" runat="server" Checked=' <%# Convert.ToBoolean(Eval("PIMStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="大功率工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFPowerStep" runat="server" Value='<%# Eval("PowerStep") %>' />
                                    <asp:DropDownList ID="DDLPowerStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox7" runat="server" Checked=' <%# Convert.ToBoolean(Eval("PowerStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="调试有源ATE工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFDebugActiveATEStep" runat="server" Value='<%# Eval("DebugActiveATEStep") %>' />
                                    <asp:DropDownList ID="DDLDebugActiveATEStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox15" runat="server" Checked=' <%# Convert.ToBoolean(Eval("DebugActiveATEStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="电压检测工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFVoltageCheckStep" runat="server" Value='<%# Eval("VoltageCheckStep") %>' />
                                    <asp:DropDownList ID="DDLVoltageCheckStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="ChB_VoltageCheckStep" runat="server" Checked=' <%# Convert.ToBoolean(Eval("VoltageCheckStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="电流检测工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFCurrentCheckStep" runat="server" Value='<%# Eval("CurrentCheckStep") %>' />
                                    <asp:DropDownList ID="DDLCurrentCheckStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="ChB_CurrentCheckStep" runat="server" Checked=' <%# Convert.ToBoolean(Eval("CurrentCheckStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="灵敏度工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFSensitivityStep" runat="server" Value='<%# Eval("SensitivityStep") %>' />
                                    <asp:DropDownList ID="DDLSensitivityStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="ChB_SensitivityStep" runat="server" Checked=' <%# Convert.ToBoolean(Eval("SensitivityStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="ATE工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFATEStep" runat="server" Value='<%# Eval("ATEStep") %>' />
                                    <asp:DropDownList ID="DDLATEStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox9" runat="server" Checked=' <%# Convert.ToBoolean(Eval("ATEStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="有源ATE工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFActiveATEStep" runat="server" Value='<%# Eval("ActiveATEStep") %>' />
                                    <asp:DropDownList ID="DDLActiveATEStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox16" runat="server" Checked=' <%# Convert.ToBoolean(Eval("ActiveATEStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="OIP3工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFOIP3Step" runat="server" Value='<%# Eval("OIP3Step") %>' />
                                    <asp:DropDownList ID="DDLOIP3Step" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="ChB_OIP3Step" runat="server" Checked=' <%# Convert.ToBoolean(Eval("OIP3Step")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="高频工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFHFATEStep" runat="server" Value='<%# Eval("HFATEStep") %>' />
                                    <asp:DropDownList ID="DDLHFATEStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox10" runat="server" Checked=' <%# Convert.ToBoolean(Eval("HFATEStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="气密工序">          
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFAirtightnessStep" runat="server" Value='<%# Eval("AirtightnessStep") %>' />
                                    <asp:DropDownList ID="DDLAirtightnessStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox11" runat="server" Checked=' <%# Convert.ToBoolean(Eval("AirtightnessStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="二次交调工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFPIMSecondStep" runat="server" Value='<%# Eval("PIMSecondStep") %>' />
                                    <asp:DropDownList ID="DDLPIMSecondStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox14" runat="server" Checked=' <%# Convert.ToBoolean(Eval("PIMSecondStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="包装前外观检验工序">         
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFPackCheckStep" runat="server" Value='<%# Eval("PackCheckStep") %>' />
                                    <asp:DropDownList ID="DDLPackCheckStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox12" runat="server" Checked=' <%# Convert.ToBoolean(Eval("PackCheckStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="包装工序">
                                <EditItemTemplate>
                                    <asp:HiddenField ID="HDFPackageStep" runat="server" Value='<%# Eval("PackageStep") %>' />
                                    <asp:DropDownList ID="DDLPackageStep" runat="server">
                                        <asp:ListItem Value="True">是</asp:ListItem>
                                        <asp:ListItem Value="False">否</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox13" runat="server" Checked=' <%# Convert.ToBoolean(Eval("PackageStep")) %>'
                                        Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="选择" ShowHeader="False">
                                <EditItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                                        Text="更新"></asp:LinkButton>
                                    &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                                        Text="取消"></asp:LinkButton>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit"
                                        Text="编辑"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                    <br />
                    <br />
                    <br />
                </div>
                <br />
                <br />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
